package com.dckeji.shiplock.framework.constants;

/**
 * Created with IntelliJ IDEA.
 * User: TianWei
 * Date: 2017/7/28
 * Time: 17:44
 * Spring 配置常量类
 */
public interface WebConstants {


    interface Servlet {
        interface ServletName {
            String DruidStatView = "DruidStatView";
        }

        interface ServletMapping {
            String DruidStatView = "/druid/*";
        }

        interface InitParam {
            String ResetEnable = "resetEnable";
            String LoginUsername = "loginUsername";
            String LoginPassword = "loginPassword";
        }

        String UserName = "dckeji";
        String Password = "dckeji";
        String StrTrue = "true";

    }

    interface Filter {
        interface FIlterName {
            String GZIPFilter = "GZIPFilter";
            String SetCharacterEncoding = "SetCharacterEncoding";
            String LoginFilter = "LoginFilter";
            String RESTLoginFilter = "RESTLoginFilter";

            String CORSFilter = "CORSFilter";
        }

        interface FilterMapping {
            String Root = "/";
            String dox = "*.dox";
            String Manager = "/main/*";
            String RESTManager = "/rest/ma/*";
        }


        interface ExceptionMessage {
            String JSON_NOT_DATA = "json data is null.";
        }

    }


    interface Encoding {
        String UTF8 = "UTF-8";
        String Encoding = "encoding";
    }

    interface Localtion {
        String EhCaheLocal = "classpath:ehcache.xml";
        String AppLocal = "classpath:application.properties";
        String Log4jLocal = "classpath:log4j.properties";
    }


    interface HttpHead {
        String ContentType = "application/json;charset=UTF-8";

        String MimeType = "text/plain;charset=utf-8";


    }


}
